package day05;

//continue的演示
public class ContinueDemo {
    public static void main(String[] args) {

        for (int i = 1; i <= 9; i++) {
            if (i % 3 == 0) {
                continue;
            }
            System.out.println(i + "*9=" + i * 9);
        }
        /*
        执行过程
        i=1     ture    false   1*9
        i=2     true    false   2*9
        i=3     true    true    continue
        i=4     true    false   4*9
        i=5     true    false   5*9
        i=6     ture    true   continue
        i=7     true    false   7*9
        i=8     true    false   8*9
        i=9     true    ture   continue
         */

        for (int i = 1; i <= 9; i++) {
            if (i % 3 != 0) {
                System.out.println(i + "*9=" + i * 9);
            }
        }


    }
}
